//
//  GYOrderGoods.m
//  GoodLuck
//
//  Created by 郭为勇 on 2018/3/21.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYOrderGoods.h"

@implementation GYOrderGoods

+ (NSArray *)loadOrderGoods:(NSArray *)source {
    NSMutableArray *models = [NSMutableArray array];
    for (NSDictionary *dic in source) {
        GYOrderGoods *goods = [[GYOrderGoods alloc] initWithDic:dic];
        [models addObject:goods];
    }
    
    return models;
}

- (instancetype)initWithDic:(NSDictionary *)dic {
    if ([super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return  self;
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    //NSLog(@"key=======%@",key);
}

- (NSString *)description {
    return [NSString stringWithFormat:@"%@",self.goods_name];
}

@end
